package com.smasher.domain.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.smasher.domain.R
import com.smasher.domain.entity.BeanDomain
import com.smasher.domain.holder.DomainViewHolder
import com.smasher.widget.base.BaseRecyclerAdapter

class DomainAdapter : BaseRecyclerAdapter<BeanDomain, DomainViewHolder>() {
    override fun onCreateDefineViewHolder(viewGroup: ViewGroup, i: Int): DomainViewHolder {
        val layoutInflater = LayoutInflater.from(viewGroup.context)
        val view = layoutInflater.inflate(R.layout.item_domain, viewGroup, false)
        return DomainViewHolder(view)
    }
}
